import java.awt.Image;
import java.awt.Rectangle;

import javax.swing.*;
import java.awt.*;
import java.util.Random;
import javax.swing.ImageIcon;

/*
May 7, 2013
Obstacles.java
Erich Hauck
 */

public class Obstacles
{
   private ImageIcon imageArray[];
   Image pit;
   Image lavaPit;
   Image rock;
   Rectangle obstBox;
   int x, y;
   public Obstacles()
   {
    //creates array for images
      
      imageArray = new ImageIcon[3];
      imageArray[0] = new ImageIcon("Pit.png");
      imageArray[1] = new ImageIcon("LavPit.png");
      imageArray[2] = new ImageIcon("fuck.png");
      //sets the image icon to an image
      pit = imageArray[0].getImage();
      lavaPit = imageArray[1].getImage();
      rock = imageArray[2].getImage();
      
      //gets the height and width for the rectangle
      //creates monster bounds
   }
   
   //gets x y
   
   //gets X and Y
   
   public int getX()
   {
      return x;
   }
   public int getY()
   {
      return y;
   }
   //sets x y
   public void setX(int inputx)
   {
      x = inputx;
   }
   public void setY(int inputy)
   {
      y= inputy;
   }
   
   //gets the bounds of the player
   public Rectangle getBounds() 
   {
      obstBox = new Rectangle(x, y, 30, 30);
       return obstBox;
   }
   
   //returns image
   public Image getPit()
   {
      return pit;
   }
   public Image getLavaPit()
   {
      return lavaPit;
   }
   public Image getRock()
   {
      return rock;
   }
   
}
